<template>
	<div>
		<p>grandson</p>
		<div>{{ msg }}</div>
		<div>响应式provide数据{{ obj.msg }}</div>
	</div>
</template>
<script>
export default {
	name: "grandson",
	components: {},
	data() {
		return {};
	},
	inject: ["msg", "obj"],
	// 遇见相同的provide，以最近的接收
	mounted() {
		console.log(this);
	},
	methods: {},
};
</script>
<style lang="" scoped></style>
